<%--
  Created by IntelliJ IDEA.
  User: flower
  Date: 2022/9/20
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>

<html>
<head>
    <title>Title</title>
</head>
<%--1. 引入jquery--%>
<script src="webjars/jquery/3.6.1/dist/jquery.min.js"></script>
<%--2. 引入boostrap的css样式--%>
<link rel="stylesheet" href="webjars/bootstrap/3.4.1/dist/css/bootstrap.min.css">
<%--3. 引入bootstrap的js库--%>
<script src="webjars/bootstrap/3.4.1/dist/js/bootstrap.min.js"></script>
<style>
    .container{
        margin-top: 300px;
        width: 500px;
        border: 1px solid cornflowerblue;
        border-radius: 20px;

    }
</style>

<body>

<div class="container">
    <div class="panel-heading">
        <h3 class="panel-title">
            <h3>修改学生</h3>

        </h3>
    </div>
    <form class="form-horizontal" action="${pageContext.request.contextPath }/modify"  method="post">
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">序号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="id"  name="id" value="${student.id}" readonly >
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name" value="${student.name}">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">年龄</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="age" name="age" value="${student.age}">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">爱好</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="habby" name="habby" value="${student.habby}">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">班级</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="classname" name="classname" value="${student.classname}">
            </div>
        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label">电话</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="phone" name="phone" value="${student.phone}">
            </div>
        </div>
       <input type="submit" class="btn btn-primary"></input>
    </form>
</div>
</body>
</html>
